<?php

$db_host = "rctf-mysql80";
$db_user = "rctf";
$db_password = "ad846ebd-ae19-4ef4-ab12-c47147a2c7f3";
$db_name = "rctf2021";

$db_user2 = "rctf2";
$db_password2 = "e5176ce9-5d8a-4e3b-bee8-72c716b66a2d";

$seed = hexdec(bin2hex(random_bytes(rand(1,5))));
mt_srand($seed);

$mysql_functions = array(
    "abs",
    "acos",
    "adddate",
    "addtime",
    "aes_decrypt",
    "aes_encrypt",
    "any_value",
    "ascii",
    "asin",
    "asymmetric_decrypt",
    "asymmetric_derive",
    "asymmetric_encrypt",
    "asymmetric_sign",
    "asymmetric_verify",
    "asynchronous_connection_failover_add_managed",
    "asynchronous_connection_failover_add_source",
    "asynchronous_connection_failover_delete_managed",
    "asynchronous_connection_failover_delete_source",
    "atan",
    "atan2",
    "audit_api_message_emit_udf",
    "audit_log_encryption_password_get",
    "audit_log_encryption_password_set",
    "audit_log_filter_flush",
    "audit_log_filter_remove_filter",
    "audit_log_filter_remove_user",
    "audit_log_filter_set_filter",
    "audit_log_filter_set_user",
    "audit_log_read",
    "audit_log_read_bookmark",
    "avg",
    "benchmark",
    "bin",
    "bin_to_uuid",
    "bit_and",
    "bit_count",
    "bit_length",
    "bit_or",
    "bit_xor",
    "cast",
    "ceil",
    "ceiling",
    "char",
    "char_length",
    "character_length",
    "charset",
    "coalesce",
    "coercibility",
    "collation",
    "compress",
    "concat",
    "concat_ws",
    "connection_id",
    "conv",
    "convert",
    "convert_tz",
    "cos",
    "cot",
    "count",
    "crc32",
    "create_asymmetric_priv_key",
    "create_asymmetric_pub_key",
    "create_dh_parameters",
    "create_digest",
    "cume_dist",
    "curdate",
    "current_date",
    "current_role",
    "current_time",
    "current_timestamp",
    "current_user",
    "curtime",
    "database",
    "date",
    "date_add",
    "date_add_interval",
    "date_format",
    "date_sub",
    "date_sub_interval",
    "datediff",
    "day",
    "dayname",
    "dayofmonth",
    "dayofweek",
    "dayofyear",
    "default",
    "degrees",
    "dense_rank",
    "distinct",
    "elt",
    "exp",
    "export_set",
    "extract",
    "extractvalue",
    "field",
    "find_in_set",
    "firewall_group_delist",
    "firewall_group_enlist",
    "first_value",
    "floor",
    "format",
    "format_bytes",
    "format_pico_time",
    "found_rows",
    "from_base64",
    "from_days",
    "from_unixtime",
    "gen_blacklist",
    "gen_blocklist",
    "gen_dictionary",
    "gen_dictionary_drop",
    "gen_dictionary_load",
    "gen_range",
    "gen_rnd_email",
    "gen_rnd_pan",
    "gen_rnd_ssn",
    "gen_rnd_us_phone",
    "geomcollection",
    "geometrycollection",
    "get_dd_column_privileges",
    "get_dd_create_options",
    "get_dd_index_sub_part_length",
    "get_format",
    "get_lock",
    "greatest",
    "group_concat",
    "group_replication_disable_member_action",
    "group_replication_enable_member_action",
    "group_replication_get_communication_protocol",
    "group_replication_get_write_concurrency",
    "group_replication_reset_member_actions",
    "group_replication_set_as_primary",
    "group_replication_set_communication_protocol",
    "group_replication_set_write_concurrency",
    "group_replication_switch_to_multi_primary_mode",
    "group_replication_switch_to_single_primary_mode",
    "grouping",
    "gtid_subset",
    "gtid_subtract",
    "hex",
    "hour",
    "icu_version",
    "if",
    "ifnull",
    "in",
    "inet6_aton",
    "inet6_ntoa",
    "inet_aton",
    "inet_ntoa",
    "insert",
    "instr",
    "internal_auto_increment",
    "internal_avg_row_length",
    "internal_check_time",
    "internal_checksum",
    "internal_data_free",
    "internal_data_length",
    "internal_dd_char_length",
    "internal_get_comment_or_error",
    "internal_get_enabled_role_json",
    "internal_get_hostname",
    "internal_get_username",
    "internal_get_view_warning_or_error",
    "internal_index_column_cardinality",
    "internal_index_length",
    "internal_is_enabled_role",
    "internal_is_mandatory_role",
    "internal_keys_disabled",
    "internal_max_data_length",
    "internal_table_rows",
    "internal_update_time",
    "interval",
    "is_free_lock",
    "is_ipv4",
    "is_ipv4_compat",
    "is_ipv4_mapped",
    "is_ipv6",
    "is_used_lock",
    "is_uuid",
    "isnull",
    "json_array",
    "json_array_append",
    "json_array_insert",
    "json_arrayagg",
    "json_contains",
    "json_contains_path",
    "json_depth",
    "json_extract",
    "json_insert",
    "json_keys",
    "json_length",
    "json_merge",
    "json_merge_patch",
    "json_merge_preserve",
    "json_object",
    "json_objectagg",
    "json_overlaps",
    "json_pretty",
    "json_quote",
    "json_remove",
    "json_replace",
    "json_schema_valid",
    "json_schema_validation_report",
    "json_search",
    "json_set",
    "json_storage_free",
    "json_storage_size",
    "json_table",
    "json_type",
    "json_unquote",
    "json_valid",
    "json_value",
    "keyring_aws_rotate_cmk",
    "keyring_aws_rotate_keys",
    "keyring_hashicorp_update_config",
    "keyring_key_fetch",
    "keyring_key_generate",
    "keyring_key_length_fetch",
    "keyring_key_remove",
    "keyring_key_store",
    "keyring_key_type_fetch",
    "lag",
    "last_day",
    "last_insert_id",
    "last_value",
    "lcase",
    "lead",
    "least",
    "left",
    "length",
    "like_range_max",
    "like_range_min",
    "linestring",
    "ln",
    "load_file",
    "load_rewrite_rules",
    "localtime",
    "localtimestamp",
    "localtimestamp, localtimestamp",
    "locate",
    "log",
    "log10",
    "log2",
    "lower",
    "lpad",
    "ltrim",
    "make_set",
    "makedate",
    "maketime",
    "mask_inner",
    "mask_outer",
    "mask_pan",
    "mask_pan_relaxed",
    "mask_ssn",
    "master_pos_wait",
    "max",
    "mbrcontains",
    "mbrcoveredby",
    "mbrcovers",
    "mbrdisjoint",
    "mbrequals",
    "mbrintersects",
    "mbroverlaps",
    "mbrtouches",
    "mbrwithin",
    "md5",
    "member of",
    "microsecond",
    "mid",
    "min",
    "minute",
    "mod",
    "month",
    "monthname",
    "multilinestring",
    "multipoint",
    "multipolygon",
    "mysql_firewall_flush_status",
    "mysql_query_attribute_string",
    "name_const",
    "normalize_statement",
    "not in",
    "now",
    "nth_value",
    "ntile",
    "nullif",
    "oct",
    "octet_length",
    "ord",
    "password",
    "percent_rank",
    "period_add",
    "period_diff",
    "pi",
    "point",
    "polygon",
    "position",
    "pow",
    "power",
    "ps_current_thread_id",
    "ps_thread_id",
    "quarter",
    "quote",
    "radians",
    "rand",
    "random_bytes",
    "rank",
    "read_firewall_group_allowlist",
    "read_firewall_groups",
    "read_firewall_users",
    "read_firewall_whitelist",
    "regexp_instr",
    "regexp_like",
    "regexp_replace",
    "regexp_substr",
    "release_all_locks",
    "release_lock",
    "repeat",
    "replace",
    "reverse",
    "right",
    "roles_graphml",
    "round",
    "row_count",
    "row_number",
    "rpad",
    "rtrim",
    "schema",
    "sec_to_time",
    "second",
    "service_get_read_locks",
    "service_get_write_locks",
    "service_release_locks",
    "session_user",
    "set_firewall_group_mode",
    "set_firewall_mode",
    "sha",
    "sha1",
    "sha2",
    "sign",
    "sin",
    "sleep",
    "soundex",
    "source_pos_wait",
    "space",
    "sqrt",
    "st_area",
    "st_asbinary",
    "st_asgeojson",
    "st_astext",
    "st_aswkb",
    "st_aswkt",
    "st_buffer",
    "st_buffer_strategy",
    "st_centroid",
    "st_collect",
    "st_contains",
    "st_convexhull",
    "st_crosses",
    "st_difference",
    "st_dimension",
    "st_disjoint",
    "st_distance",
    "st_distance_sphere",
    "st_endpoint",
    "st_envelope",
    "st_equals",
    "st_exteriorring",
    "st_frechetdistance",
    "st_geohash",
    "st_geomcollfromtext",
    "st_geomcollfromtxt",
    "st_geomcollfromwkb",
    "st_geometrycollectionfromtext",
    "st_geometrycollectionfromwkb",
    "st_geometryfromtext",
    "st_geometryfromwkb",
    "st_geometryn",
    "st_geometrytype",
    "st_geomfromgeojson",
    "st_geomfromtext",
    "st_geomfromwkb",
    "st_hausdorffdistance",
    "st_interiorringn",
    "st_intersection",
    "st_intersects",
    "st_isclosed",
    "st_isempty",
    "st_issimple",
    "st_isvalid",
    "st_latfromgeohash",
    "st_latitude",
    "st_length",
    "st_linefromtext",
    "st_linefromwkb",
    "st_lineinterpolatepoint",
    "st_lineinterpolatepoints",
    "st_linestringfromtext",
    "st_linestringfromwkb",
    "st_longfromgeohash",
    "st_longitude",
    "st_makeenvelope",
    "st_mlinefromtext",
    "st_mlinefromwkb",
    "st_mpointfromtext",
    "st_mpointfromwkb",
    "st_mpolyfromtext",
    "st_mpolyfromwkb",
    "st_multilinestringfromtext",
    "st_multilinestringfromwkb",
    "st_multipointfromtext",
    "st_multipointfromwkb",
    "st_multipolygonfromtext",
    "st_multipolygonfromwkb",
    "st_numgeometries",
    "st_numinteriorring",
    "st_numinteriorrings",
    "st_numpoints",
    "st_overlaps",
    "st_pointatdistance",
    "st_pointfromgeohash",
    "st_pointfromtext",
    "st_pointfromwkb",
    "st_pointn",
    "st_polyfromtext",
    "st_polyfromwkb",
    "st_polygonfromtext",
    "st_polygonfromwkb",
    "st_simplify",
    "st_srid",
    "st_startpoint",
    "st_swapxy",
    "st_symdifference",
    "st_touches",
    "st_transform",
    "st_union",
    "st_validate",
    "st_within",
    "st_x",
    "st_y",
    "statement_digest",
    "statement_digest_text",
    "std",
    "stddev",
    "stddev_pop",
    "stddev_samp",
    "str_to_date",
    "strcmp",
    "subdate",
    "substr",
    "substring",
    "substring_index",
    "subtime",
    "sum",
    "sysdate",
    "system_user",
    "tan",
    "time",
    "time_format",
    "time_to_sec",
    "timediff",
    "timestamp",
    "timestampadd",
    "timestampdiff",
    "to_base64",
    "to_days",
    "to_seconds",
    "trim",
    "truncate",
    "ucase",
    "uncompress",
    "uncompressed_length",
    "unhex",
    "unix_timestamp",
    "updatexml",
    "upper",
    "user",
    "utc_date",
    "utc_time",
    "utc_timestamp",
    "uuid",
    "uuid_short",
    "uuid_to_bin",
    "validate_password_strength",
    "values",
    "var_pop",
    "var_samp",
    "variance",
    "version",
    "version_tokens_delete",
    "version_tokens_edit",
    "version_tokens_lock_exclusive",
    "version_tokens_lock_shared",
    "version_tokens_set",
    "version_tokens_show",
    "version_tokens_unlock",
    "wait_for_executed_gtid_set",
    "wait_until_sql_thread_after_gtids",
    "week",
    "weekday",
    "weekofyear",
    "weight_string",
    "year",
    "yearweek"
);

?>